package com.itheima.泛型;

/**
 * @Author 王加鑫
 * @Date 2021/5/14 9:31
 * @Version 1.0
 */
public class BoxTest {
    public static void main(String[] args) {
        Box<String> box = new Box<>();
        box.setEleMent("张三");
        System.out.println("box = " + box);
        
        Box<Double> doubleBox = new Box<>();
        doubleBox.setEleMent(18.0);
        System.out.println("doubleBox = " + doubleBox);
        
    }
}
